package org.jiamandan.com.config;

import io.netty.channel.socket.DatagramPacket;

import java.net.InetSocketAddress;

public class UdpHexMessage {
    private final String hexData;    // HEX 格式字符串（如 "48656C6C6F"）
    private final InetSocketAddress sender;
    private final DatagramPacket  packet;

    public UdpHexMessage(String hexData, InetSocketAddress sender, DatagramPacket packet) {
        this.hexData = hexData;
        this.sender = sender;
        this.packet = packet;
    }

    public String getHexData() {
        return hexData;
    }

    public InetSocketAddress getSender() {
        return sender;
    }
    public DatagramPacket getPacket() {
        return packet;
    }
}
